package IO;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Microsoft
 * Date: 2023-07-28
 * Time: 17:06
 */
public class IODemo8 {
    public static void main(String[] args) {
        try(Reader reader = new FileReader("./学.txt")){
            while (true) {
                int c =reader.read();
                if (c == -1){
                    break;
                }
                char ch = (char) c;
                System.out.println(ch);
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}


























